package com.site.wisdom_construction.entity.integralSupermarketModule;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Date;

/**
 * @Description  
 * @Author  DYF
 * @Date 2022-01-18 
 */
@ApiModel (value ="兑换记录表实体类",description = "ConversionRecord")
public class ConversionRecord {
	/**
	 * 兑换记录表id
	 */
   	@ApiModelProperty(value = "兑换记录表id", name = "id")
	private Integer id;

	/**
	 * 项目id
	 */
   	@ApiModelProperty(value = "项目id", name = "projectId")
	private Integer projectId;

	/**
	 * 工人id
	 */
   	@ApiModelProperty(value = "工人id", name = "workerId")
	private Integer workerId;

	/**
	 * 工人姓名
	 */
	@ApiModelProperty(value = "工人姓名", name = "workerName")
	private String workerName;

	/**
	 * 商品名称
	 */
   	@ApiModelProperty(value = "商品名称", name = "commodityName")
	private String commodityName;

	/**
	 * 兑换时间
	 */
   	@ApiModelProperty(value = "兑换时间", name = "conversionTime")
	@JsonFormat(timezone = "GMT+8", pattern ="yyyy-MM-dd")
	private Date conversionTime;

	/**
	 * 状态
	 */
   	@ApiModelProperty(value = "状态", name = "status")
	private String status;

	public ConversionRecord(){ super(); }

	public ConversionRecord(Integer id, Integer projectId, Integer workerId, String workerName, String commodityName, Date conversionTime, String status) {
		this.id = id;
		this.projectId = projectId;
		this.workerId = workerId;
		this.workerName = workerName;
		this.commodityName = commodityName;
		this.conversionTime = conversionTime;
		this.status = status;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getWorkerId() {
		return workerId;
	}

	public void setWorkerId(Integer workerId) {
		this.workerId = workerId;
	}

	public String getWorkerName() {
		return workerName;
	}

	public void setWorkerName(String workerName) {
		this.workerName = workerName;
	}

	public String getCommodityName() {
		return commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}

	public Date getConversionTime() {
		return conversionTime;
	}

	public void setConversionTime(Date conversionTime) {
		this.conversionTime = conversionTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "{" +
				"id=" + id +
				", projectId=" + projectId +
				", workerId=" + workerId +
				", workerName='" + workerName + '\'' +
				", commodityName='" + commodityName + '\'' +
				", conversionTime=" + conversionTime +
				", status='" + status + '\'' +
				'}';
	}
}
